#ifndef _SESSION_MANAGER_H_
#define _SESSION_MANAGER_H_

#include <boost/unordered_map.hpp>

#include "Session.h"

class SessionManager
{
private:
	boost::unordered_map<int, boost::unordered_map<unsigned int, Session *> * > _session_list;

	boost::unordered_map<unsigned int, Session *>::iterator _iterator;

	int _current_key;
public:
	void AddSession(Session *session);
	void DelSession(Session *session);
	Session * GetSession(int server_key, unsigned int session_key);
	Session * GetFirstSession(int key);
	Session * GetNextSession();
};

#endif
